<?php
/**
 * 消息系统
 * @author Administrator
 *
 */
class Application_Model_Msg
{
	/**
	 * 系统日志
	 * @var int
	 */
	const TYPE_SYS_LOG = 0;
	
	/**
	 * 用户操作
	 * @var int
	 */
	const TYPE_USERDO_LOG = 1;
	
	/**
	 * 站内信
	 * @var int
	 */
	const TYPE_MSG = 2;
		
	/**
	 * 日程提醒
	 * @var int
	 */
	const TYPE_ALARM = 3;
	
	/**
	 * 类型数组
	 * @var Array
	 */
	public static $TYPE_ARR = array(
		self::TYPE_SYS_LOG 		=> "系统日志",
		self::TYPE_USERDO_LOG 	=> "用户操作",
		self::TYPE_MSG 			=> "站内信",
		self::TYPE_ALARM 		=> "日程提醒"
	);
	//=========================================================================
	
	/**
	 * 消息来自系统
	 * @var int
	 */
	const FROM_SYS = 0;
	
	/**
	 * 来自 数组
	 * @var array
	 */
	public static $FROM_ARR = array(
		self::FROM_SYS => "系统"
	);
	
	//=========================================================================	
	
	/**
	 * 消息发送给黑洞 -1
	 * @var int
	 */
	const TO_SYS = -1;
	
	/**
	 * 消息发送给所有人 0
	 * @var int
	 */
	const TO_ALL = 0;
	
	/**
	 * 消息发送给管理员 1
	 * @var int
	 */
	const TO_ADMIN = 1;	
	
	/**
	 * 送给 数组
	 * @var array
	 */
	public static $TO_ARR = array(
		self::TO_SYS 	=> "系统",
		self::TO_ALL 	=> "全部",
		self::TO_ADMIN 	=> "管理员"
	);
	//=========================================================================	
}